<?php
/**
 * Description of Constantes
 *
 * @author Magno
 */
class Constantes {

    public static $URL_CRIPTOGRAFADA = false;
    
    public static $RES_WORDS_COLUMNS = array("PRIMARY KEY","INDEX","UNIQUE","CONSTRAINT");

    public static $PRIMARY_KEY = "PRIMARY KEY";
    public static $INDEX = "INDEX";
    public static $UNIQUE = "UNIQUE";
    public static $CONSTRAINT = "CONSTRAINT";
    public static $NOT_NULL = "NOT NULL";
    public static $DEFAULT = "DEFAULT";
    public static $REFERENCES = "REFERENCES";
    public static $FOREIGNKEY = "FOREIGNKEY";

    public static $TEMPLATES_DIR = "templates/";
    public static $TEMPLATES_BEAN_DIR = "templates/bean/";
    public static $TEMPLATES_DAO_DIR = "templates/dao/";
    public static $TEMPLATES_SERVICE_DIR = "templates/service/";
    public static $TEMPLATES_ACTION_DIR = "templates/action/";
    public static $TEMPLATES_VIEW_DIR = "templates/view/";

    /** CONSTANTES DAS FK_REFERENCE_META **/
    public static $CARDINALITY_1 = '1';
    public static $CARDINALITY_M = 'm';
    public static $TYPE_FORM_COMBO = 'combo';
    public static $TYPE_FORM_HIDDEN_ID = 'hidID';
    public static $TYPE_FORM_INCLUDE = 'form';
    public static $TYPE_FORM_NO = 'no';
    public static $SIDE_OBJ_FK = 1;
    public static $SIDE_OBJ_REF = 2;

    /** CONSTANTES TIPO DE ATRIBUTO ESPECIAL **/
    public static $TYPE_ARRAY = 'ARRAY';
    public static $TYPE_OBJ = 'OBJECT';

    /** CONSTANTES DO TEMPLATE BEAN **/
    public static $TPL_BEAN_NAME_UPPER = ":Name";
    public static $TPL_BEAN_NAME_LOWER = ":name";
    public static $TPL_BEAN_NAME_TO_UPPER = ":NAME";
    public static $TPL_BEAN_EXTENDS = ":extends";
    public static $TPL_BEAN_CONSTRUCT_PARENT = ":constructParent";
    public static $TPL_BEAN_VAR = ":var";
    public static $TPL_BEAN_CONSTRUCT_VAR = ":constructVar";
    public static $TPL_BEAN_INIT_VAR = ":initVar";
    public static $TPL_BEAN_ARRAY_VAR = ":arrayVar";
    public static $TPL_BEAN_GETTERS = ":get";
    public static $TPL_BEAN_SETTERS = ":set";

    /** CONSTANTES COMUNS AOS TEMPLATE **/
    public static $TPL_LIST_PARAM_INIT = ":listParamInit";
    public static $TPL_LIST_PARAM = ":listParam";
    
    
    /** CONSTANTES DO TEMPLATE DAO **/
    public static $TPL_DAO_UPDATE_COLUMNS = ":updateColumns";
    public static $TPL_DAO_INSERT_COLUMNS = ":insertColumns";
    public static $TPL_DAO_INSERT_VALUES = ":insertValues";
    
    public static $TPL_DAO_SET_VALUES = ":setValues";
    public static $TPL_DAO_REL_EXTERNAL = ":relExternal";
    public static $TPL_DAO_DAOS_EXTERNAL = ":daosExternal";
    public static $TPL_DAO_INIT_DAOS_EXTERNAL = ":initDaosExternal";
    public static $TPL_DAO_WHERE_TEST = ":whereTest";
    public static $TPL_DAO_PK_WHERE = ":pkWhere";
    public static $TPL_DAO_PK_BUSCAR = ":pkBuscar";
    public static $TPL_DAO_PK_INIT_PARAM = ":pkInitParam";
    public static $TPL_DAO_PK_BIND = ":pkBind";
    public static $TPL_DAO_PK_TOTAL = ":pkTotal";
    public static $TPL_DAO_PK_IF_UPDATE = ":pkIfUpdate";
    public static $TPL_DAO_PK_IF_NOT_EXIST = ":pkIfNotExist";
    public static $TPL_DAO_PK_SET_LAST_INSERTED = ":pkSetLastInserted";
    public static $TPL_DAO_BEGIN_IF_LAST_INSERTED = ":beginIfLastInserted";
    public static $TPL_DAO_END_IF_LAST_INSERTED = ":endIfLastInserted";
    public static $TPL_DAO_SAVE_PARENT = ":saveParent";
    public static $TPL_DAO_JOIN_PARENT = ":joinParent";
    public static $TPL_DAO_SET_PARENT = ":setParent";
    public static $TPL_DAO_RETURN_UPDATE = ":returnUpdate";
    public static $TPL_DAO_BEGIN_UPDATE = ":beginUpdate";
    public static $TPL_DAO_END_UPDATE = ":endUpdate";
    public static $TPL_DAO_BEGIN_DELETE = ":beginDelete";
    public static $TPL_DAO_END_DELETE = ":endDelete";
    public static $TPL_DAO_PARENT_DELETE = ":parentDelete";
    
    /** CONSTANTES DO TEMPLATE SERVICE **/
    public static $TPL_SERVICE_PK_IF_TEST = ":pkIfTest";
    public static $TPL_SERVICE_PK_INIT_PARAM = ":pkInitParam";
    public static $TPL_SERVICE_PK_LIST = ":pkList";
    public static $TPL_SERVICE_PK_TOTAL = ":pkTotal";
    
    /** CONSTANTES DO TEMPLATE ACTION **/
    public static $TPL_ACTION_PK_IF_TEST = ":pkIfTest";
    public static $TPL_ACTION_PK_INIT_PARAM = ":pkInitParam";
    public static $TPL_ACTION_PK_LIST = ":pkList";
    public static $TPL_ACTION_PK_TOTAL = ":pkTotal";
    public static $TPL_ACTION_PK_URL_PARAM = ":pkUrlParam";
    public static $TPL_ACTION_FKS_COMBO = ":fksCombo";
    public static $TPL_ACTION_FKS_BUSCAR_SALVAR = ":fksBuscarSalvar";
    public static $TPL_ACTION_FKS_SET_SALVAR = ":fksSetSalvar";
    public static $TPL_ACTION_FKS_SERVICE = ":fksService";
    public static $TPL_ACTION_FKS_INIT_SERVICE = ":fksInitService";
    public static $TPL_ACTION_FKS_OUTPUT = ":fksOutput";

    /** CONSTANTES DO TEMPLATE VIEW **/
    public static $TPL_VIEW_PK_URL_PARAM = ":pkUrlParam";

    /** CONSTANTES DO TEMPLATE VIEW-CADASTRO **/
    public static $TPL_VIEW_CADASTRO_PK_INPUT_HIDDEN = ":pkInputHiden";
    public static $TPL_VIEW_CADASTRO_IF_INC_VALIDADE = ":ifIncValidate";
    public static $TPL_VIEW_CADASTRO_END_IF_INC_VALIDADE = ":EndIfIncValidate";
    public static $TPL_VIEW_CADASTRO_JS_VALIDADE = ":jsValidate";
    public static $TPL_VIEW_CADASTRO_END_JS_VALIDADE = ":EndJsValidate";
    public static $TPL_VIEW_CADASTRO_ATT_JS_VALIDADE = ":attJsValidate";
    public static $TPL_VIEW_CADASTRO_ATT_INPUTS = ":attInputs";
    public static $TPL_VIEW_CADASTRO_FK_INPUTS = ":fkInputs";

    /** CONSTANTES DO TEMPLATE VIEW-DETALHES **/
    public static $TPL_VIEW_DETALHES_ATT_DETALHE = ":attDetalhe";
    public static $TPL_VIEW_DETALHES_FK_DETALHE = ":fkDetalhe";
    public static $TPL_VIEW_DETALHES_ATT_DETALHE_SIMPLES = ":attDetalheSimples";

    /** CONSTANTES DO TEMPLATE VIEW-FORM **/
    public static $TPL_VIEW_FORM_ATT_BUSCA_FORM = ":attBuscaForm";
    public static $TPL_VIEW_FORM_ATT_INPUT_FORM_INCLUDE = ":attInputFormInclude";

    /** CONSTANTES DO TEMPLATE VIEW-LISTAR **/
    public static $TPL_VIEW_LISTAR_ATT_BUSCA_JS = ":attBuscaJs";
    public static $TPL_VIEW_LISTAR_ATT_BUSCA_JS_PARAM = ":attBuscaJsParam";
    public static $TPL_VIEW_LISTAR_ATT_HEAD_TABLE = ":attHeadTable";
    public static $TPL_VIEW_LISTAR_ATT_ROW_TABLE = ":attRowTable";
    
    /** CONSTANTES DO TEMPLATE VIEW-LISTAR **/
    public static $TPL_VIEW_MENU_ACTION = ":menuAction";

    /** CONSTANTES DE DEFINICOES DAS PAGINAS **/
    public static $PARAM_INCLUDE_VALIDADE = "incValidate";
    public static $PARAM_INCLUDE_CSS = "incCss";
    public static $PARAM_INCLUDE_MENU = "incMenu";
    public static $PARAM_PROJECT_NAME = "projectName";
    
}
?>
